<script type="text/javascript">
	$(function(){
		$('#window_stream_config').dialog({
			autoOpen: false,
			width:400,
			modal: true,
			buttons:{
				"Okay":function(){
					$('#player').empty();
					$('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val());
					flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
					$(this).dialog('close');
				},
				"Cancel":function(){
					$(this).dialog('close');
				}
			}
		});
	})
</script>
<div id="window_stream_config" title="Stream Input Configuration">
	<table>
		<tr>
			<td>Protocol</td>
			<td><input type="text" name="stream_protocol" id="stream_protocol" value="http" /></td>
		</tr>
		<tr>
			<td>Host</td>
			<td><input type="text" name="stream_host" id="stream_host" value="" /></td>
		</tr>
		<tr>
			<td>Port</td>
			<td><input type="text" name="stream_port" id="stream_port" value="8081" /></td>
		</tr>
		<tr>
			<td>File</td>
			<td><input type="text" name="stream_file" id="stream_file" value="stream.flv" /></td>
		</tr>
	</table>
</div>